Skip to content

Bump API to latest, filter out service IP pools from list fetches - #3316

Merged
david-crespo merged 4 commits into
mainfrom
filter-service-pools
Aug 10, 2026
Merged

Bump API to latest, filter out service IP pools from list fetches#3316
david-crespo merged 4 commits into
mainfrom
filter-service-pools

Conversation

@david-crespo

@david-crespo david-crespo commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

I confirmed on dogfood that the filtering works, the two service pools get filtered out.

@vercel

vercel Bot commented Aug 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
console Ready Ready Preview Aug 10, 2026 7:18pm

Request Review


const { data: allPools } = useQuery(
q(api.systemIpPoolList, { query: { limit: ALL_ISH } })
q(api.systemIpPoolList, { query: { assignment: 'silos', limit: ALL_ISH } })

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not relevant here, but noting while we're on the subject that we're querying ip pools twice on this page

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, unfortunately this is how we have to do it to give the quick actions menu the full list while also letting the table fetch its single page. It's especially silly on lists that are expected to be short, like this one, where the two fetches are almost certainly going to give you the same results. There are a few ways we could try to avoid it, but I don't think it's worth it.

@david-crespo
david-crespo enabled auto-merge (squash) August 10, 2026 19:28
@david-crespo
david-crespo merged commit abbe25e into main Aug 10, 2026
7 checks passed
@david-crespo
david-crespo deleted the filter-service-pools branch August 10, 2026 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants